﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Register Src="~/Views/Home/bookingtool.ascx" TagPrefix="uc1" TagName="bookingtool" %>


<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    一帘幽梦酒店
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <article id="content">
        <div class="box1">
            <div class="wrapper">
                <uc1:bookingtool runat="server" ID="bookingtool" />
                <div class="kwicks-wrapper marg_bot1">
                    <ul class="kwicks horizontal">
                        <% 
                            hotel.BLL.tb_flasad flasbll = new hotel.BLL.tb_flasad();
                            
                            List<hotel.Model.tb_flasad> list = flasbll.GetModelList("is_enable like 1");
                            foreach (hotel.Model.tb_flasad mod in list)
                            {
                        %>
                        <li>
                            <img src="../<%=mod.imgurl%>" alt="<%=mod.alt %>">
                        </li>
                        <%} %>
                       
                    </ul>
                </div>
            </div>
            <div class="pad">
                <div class="line1">
                    <div class="wrapper line2">
                        <div class="col1 ">

                            <h2>
                                <img src="../Images/title_marker1.jpg" alt="">最划算</h2>
                            <% hotel.BLL.tb_info infobll = new hotel.BLL.tb_info();
                              // StringBuilder strWhere = new StringBuilder();
                              // strWhere.AppendFormat("is_enable like '%{0}%'", 1);
                              // strWhere.AppendFormat("title like 最划算");
                               %>
                            <p class="pad_bot1"><%=infobll.GetModel("最划算").text %></p>
                            <a href="#" class="color1"></a>
                        </div>
                        <div class="col1 pad_left1">
                            <h2>
                                <img src="../Images/title_marker2.jpg" alt="">入住指南</h2>
                            <p class="pad_bot1"><%=infobll.GetModel("入住指南").text %></p>
                            <a href="#" class="color1"></a>
                        </div>
                        <div class="col1 pad_left1">
                            <h2>
                                <img src="../Images/title_marker3.jpg" alt="">帮助</h2>
                            <p class="pad_bot1"><%=infobll.GetModel("帮助").text %></p>
                            <a href="#" class="color1"></a>
                        </div>
                        
                    </div>

                </div>
            </div>
        </div>
        <div class="pad">
            <div class="wrapper line3">
                <div class="col2">
                    <h2>欢迎入住一帘幽梦酒店!</h2>
                    <p class="pad_bot1">
                        <strong class="color2">酒店简介</strong><br>
                        <%=infobll.GetModel(4).text %>
                    </p>
                    
                </div>
                <div class="col1 pad_left1">
                    <h2>招贤纳士</h2>
                    <div class="wrapper">
                        <figure class="left marg_right1">
                            <img src="../../Images/page1_img1.jpg" alt="">
                        </figure>
                        <p class="pad_bot1"><strong class="color2">10.10.2014</strong></p>
                        <p class="pad_bot2">
                          <%=infobll.GetModel(8).text %>
                        </p>
                    </div>
                    <a href="#" class="button1">更多</a>
                </div>
            </div>
        </div>
    </article>


</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="scriptHolder" runat="server">
    <script type="text/javascript"> Cufon.now(); </script>
    <script>
        $(document).ready(function () {
            $('.kwicks').kwicks({
                max: 500,
                spacing: 0,
                event: 'mouseover'
            });

        })
    </script>
</asp:Content>
